package com.tony;

public class SwitchTest {
    public static void main(String[] args) {
        //test1(100);//100
        //test2(80);//default
        //test2(100);//100 90 default
        test3("10");
    }

    public static void test1(int a){
        switch (a){
            case 100:
                System.out.println(100);
                break;
            case 90:
                System.out.println(90);
                break;
            default:
                System.out.println("default");
        }
    }
    public static void test2(int a){
        switch (a){
            case 100:
                System.out.println(100);
            case 90:
                System.out.println(90);
            default:
                System.out.println("default");
        }
    }
    public static void test3(String a){
        switch (a){
            case "100":
                System.out.println(100);
            case "10":
                System.out.println(10);
            default:
                System.out.println("default");
        }
    }
    public static void test4(Long a){
        //char byte short int character,Byte,Short,Ingeger,string,enum
        //switch (a){}
    }
}
